package com.wonders.common.exception;

/**
 * 协同平台交易异常
 * 
 * @author WuBin
 * 
 */
public class XtptTradeException extends RuntimeException {

	/**
	 * 交易返回码
	 */
	private String tradeCode;

	/**
	 * 返回信息
	 */
	private String info;

	public XtptTradeException(String tradeCode, String info) {
		super();
		this.tradeCode = tradeCode;
		this.info = info;
	}

	public XtptTradeException(String tradeCode, String info, String message,
			Throwable cause) {
		super(message, cause);
		this.tradeCode = tradeCode;
		this.info = info;
	}

	public String getTradeCode() {
		return tradeCode;
	}

	public String getInfo() {
		return info;
	}

	public void setTradeCode(String tradeCode) {
		this.tradeCode = tradeCode;
	}

	public void setInfo(String info) {
		this.info = info;
	}

}
